package com.alks.entity.data.entity.dispatch;

import com.alks.entity.data.i18n.TranslateFieldSerializer;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@ToString
public class CuttingDispatchHead implements Serializable {
    private @NotBlank(
    message = "编号不能为空"
) String rowid;
    private @NotNull(
    message = "生产日期不能为空"
) Date dispatchDate;
    private @NotBlank(
    message = "指令不能为空"
) String lotNo;
    @JsonSerialize(using = TranslateFieldSerializer.class)
    private @NotBlank(
    message = "部位不能为空"
) String partName;
    private String workerIdNo;
    private @NotNull(
    message = "轮次不能为空"
) Integer lsNo;
    private Integer lsNo2;
    private Integer dispatchQty;
    private String dispatchMachine;
    private String collectUser;
    private String userId;
    private Date sysDate;
    private String printFlag;
    private String deptNo;
    private @NotBlank(
    message = "派工单号不能为空"
) String planNo;
    private String companyId;
    private String printLabelFlag;
    private String checkerIdNo;
    private String workerName;
    private String checkerName;
    private String dispatchDept;
    private String drawingFlag;
    private String dispatchName;
    private String dispatchCnName;
    private String workerId;
    private String style;
    private String mtlName;
    private String mtlUnit;
    private float usage;
    private String mtlSpec;
    private String combineLotNo;
    private Integer cutNum;
    private Integer cutLayer;
    private Integer cutCount;
    private Integer seqNo;
    @JsonIgnore
    private String remark;
    private String salaryFlag;
    @JsonIgnore
    private Map<String, Object> params;
    @JsonIgnore
    private boolean selfRecord = true;
    private boolean outDept;
    private static final long serialVersionUID = 1L;

    public CuttingDispatchHead() {
    }

    public String getSalaryFlag() {
        return this.salaryFlag;
    }

    public void setSalaryFlag(String salaryFlag) {
        this.salaryFlag = salaryFlag;
    }

    public String getRowid() {
        return this.rowid;
    }

    public void setRowid(String rowid) {
        this.rowid = rowid;
    }

    public Integer getDispatchQty() {
        return this.dispatchQty;
    }

    public void setDispatchQty(Integer dispatchQty) {
        this.dispatchQty = dispatchQty;
    }

    public String getDispatchMachine() {
        return this.dispatchMachine;
    }

    public void setDispatchMachine(String dispatchMachine) {
        this.dispatchMachine = dispatchMachine == null ? null : dispatchMachine.trim();
    }

    public String getCollectUser() {
        return this.collectUser;
    }

    public void setCollectUser(String collectUser) {
        this.collectUser = collectUser == null ? null : collectUser.trim();
    }

    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public Date getSysDate() {
        return this.sysDate;
    }

    public void setSysDate(Date sysDate) {
        this.sysDate = sysDate;
    }

    public String getPrintFlag() {
        return this.printFlag;
    }

    public void setPrintFlag(String printFlag) {
        this.printFlag = printFlag == null ? null : printFlag.trim();
    }

    public String getDeptNo() {
        return this.deptNo;
    }

    public void setDeptNo(String deptNo) {
        this.deptNo = deptNo == null ? null : deptNo.trim();
    }

    public String getPlanNo() {
        return this.planNo;
    }

    public void setPlanNo(String planNo) {
        this.planNo = planNo == null ? null : planNo.trim();
    }

    public String getCompanyId() {
        return this.companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId == null ? null : companyId.trim();
    }

    public String getPrintLabelFlag() {
        return this.printLabelFlag;
    }

    public void setPrintLabelFlag(String printLabelFlag) {
        this.printLabelFlag = printLabelFlag == null ? null : printLabelFlag.trim();
    }

    public String getCheckerIdNo() {
        return this.checkerIdNo;
    }

    public void setCheckerIdNo(String checkerIdNo) {
        this.checkerIdNo = checkerIdNo == null ? null : checkerIdNo.trim();
    }

    public String getWorkerName() {
        return this.workerName;
    }

    public void setWorkerName(String workerName) {
        this.workerName = workerName == null ? null : workerName.trim();
    }

    public String getCheckerName() {
        return this.checkerName;
    }

    public void setCheckerName(String checkerName) {
        this.checkerName = checkerName == null ? null : checkerName.trim();
    }

    public String getDispatchDept() {
        return this.dispatchDept;
    }

    public void setDispatchDept(String dispatchDept) {
        this.dispatchDept = dispatchDept == null ? null : dispatchDept.trim();
    }

    public String getDrawingFlag() {
        return this.drawingFlag;
    }

    public void setDrawingFlag(String drawingFlag) {
        this.drawingFlag = drawingFlag == null ? null : drawingFlag.trim();
    }

    public String getDispatchName() {
        return this.dispatchName;
    }

    public void setDispatchName(String dispatchName) {
        this.dispatchName = dispatchName == null ? null : dispatchName.trim();
    }

    public String getWorkerId() {
        return this.workerId;
    }

    public void setWorkerId(String workerId) {
        this.workerId = workerId == null ? null : workerId.trim();
    }

    public Date getDispatchDate() {
        return this.dispatchDate;
    }

    public void setDispatchDate(Date dispatchDate) {
        this.dispatchDate = dispatchDate;
    }

    public String getLotNo() {
        return this.lotNo;
    }

    public void setLotNo(String lotNo) {
        this.lotNo = lotNo;
    }

    public String getPartName() {
        return this.partName;
    }

    public void setPartName(String partName) {
        this.partName = partName;
    }

    public String getWorkerIdNo() {
        return this.workerIdNo;
    }

    public void setWorkerIdNo(String workerIdNo) {
        this.workerIdNo = workerIdNo;
    }

    public Integer getLsNo() {
        return this.lsNo;
    }

    public void setLsNo(Integer lsNo) {
        this.lsNo = lsNo;
    }

    public Integer getLsNo2() {
        return this.lsNo2;
    }

    public void setLsNo2(Integer lsNo2) {
        this.lsNo2 = lsNo2;
    }

    public Map<String, Object> getParams() {
        if (this.params == null) {
            this.params = new HashMap();
        }

        return this.params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }

    public String getStyle() {
        return this.style;
    }

    public void setStyle(String style) {
        this.style = style;
    }

    public String getMtlName() {
        return this.mtlName;
    }

    public void setMtlName(String mtlName) {
        this.mtlName = mtlName;
    }

    public Integer getCutNum() {
        return this.cutNum;
    }

    public void setCutNum(Integer cutNum) {
        this.cutNum = cutNum;
    }

    public Integer getCutLayer() {
        return this.cutLayer;
    }

    public void setCutLayer(Integer cutLayer) {
        this.cutLayer = cutLayer;
    }

    public Integer getCutCount() {
        return this.cutCount;
    }

    public void setCutCount(Integer cutCount) {
        this.cutCount = cutCount;
    }

    public String getMtlUnit() {
        return this.mtlUnit;
    }

    public void setMtlUnit(String mtlUnit) {
        this.mtlUnit = mtlUnit;
    }

    public float getUsage() {
        return this.usage;
    }

    public void setUsage(float usage) {
        this.usage = usage;
    }

    public String getMtlSpec() {
        return this.mtlSpec;
    }

    public void setMtlSpec(String mtlSpec) {
        this.mtlSpec = mtlSpec;
    }

    public boolean isSelfRecord() {
        return this.selfRecord;
    }

    public void setSelfRecord(boolean selfRecord) {
        this.selfRecord = selfRecord;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getSeqNo() {
        return this.seqNo;
    }

    public void setSeqNo(Integer seqNo) {
        this.seqNo = seqNo;
    }

    public String getDispatchCnName() {
        return this.dispatchCnName;
    }

    public void setDispatchCnName(String dispatchCnName) {
        this.dispatchCnName = dispatchCnName;
    }

    public String getCombineLotNo() {
        return this.combineLotNo;
    }

    public void setCombineLotNo(String combineLotNo) {
        this.combineLotNo = combineLotNo;
    }

    public boolean isOutDept() {
        return this.outDept;
    }

    public void setOutDept(boolean outDept) {
        this.outDept = outDept;
    }
}
